package com.advertisementsystem.Dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


import java.time.LocalDateTime;
import java.util.List;
@Data
public class ScheduleDTO {

    @NotNull(message = "广告ID不能为空")
    private Long advertisementId;

    @NotNull(message = "设备ID不能为空")
    private Long deviceId;

    @NotNull(message = "开始时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @NotNull(message = "结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @NotEmpty(message = "播放时段不能为空")
    private List<TimeSlot> timeSlots;

    private String remark;

    private Long negotiationId;
}
